package cn.tedu.charging.device.repository;

import cn.tedu.charging.common.pojo.po.ChargingGunInfoPO;
import cn.tedu.charging.common.pojo.po.ChargingStationPO;
import cn.tedu.charging.common.pojo.query.NearStationsQuery;
import cn.tedu.charging.device.pojo.po.StationCanalPO;
import org.springframework.data.geo.GeoResult;

import java.util.List;

public interface DeviceRepository {
    List<GeoResult> nearStations(NearStationsQuery query);

    String getStationName(Integer stationId);

    ChargingStationPO getStationById(Integer stationId);

    List<ChargingGunInfoPO> getGunListByStationId(Integer stationId);

    Boolean updateGunStatus(Integer gunId, Integer status, List<Integer> integers);

    void saveStation(StationCanalPO stationCanalPO);

    void updateStation(StationCanalPO before, StationCanalPO after);

    void deleteStation(StationCanalPO stationCanalPO);
}
